package com.spring.framwork.Sub;

import com.spring.framwork.spring.annotation.Autowried;
import com.spring.framwork.spring.annotation.Component;
import com.spring.framwork.spring.annotation.PostConstruct;

@Component
public class cat {
    @Autowried
    private Dog dog;
    @PostConstruct
    public void init(){
        System.out.println("Cat创建了"+"有一个属性"+dog);
    }
}
